﻿
public class ByteTools {

		public static int sendMsgCount = 0;
		public static int msgKey(int length)
		{
				int key = sendMsgCount ^ length;
				key = ((~key & (1 << 9)) | (key & ~(1 << 9)));

				return key;
		} 

		public static void sendMsgCountAdd(){
				sendMsgCount++;
		}
}
